//
//  PCCollectionReusableViewTitle.m
//  Mall
//
//  Created by 孙飞燕 on 16/10/18.
//  Copyright © 2016年 孙飞燕. All rights reserved.
//

#import "PCCollectionReusableViewTitle.h"
#define kWidth self.frame.size.width

@implementation PCCollectionReusableViewTitle

- (UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, 10, 100, 30)];
        [self addSubview:self.titleLabel];
    }
    return _titleLabel;
}

- (UIButton *)allOrderBtn{
    if (!_allOrderBtn) {
        _allOrderBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        [_allOrderBtn setTitle:@"全部订单>" forState:UIControlStateNormal];
        [_allOrderBtn setFrame:CGRectMake(kWidth - 100, 10, 100, 30)];
        [_allOrderBtn setTintColor:[UIColor lightGrayColor]];
        [self addSubview:_allOrderBtn];
    }
    return _allOrderBtn;
}

@end
